﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class searchbar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Socut.Reader searchReader = new Socut.Reader("select id,smallclassname,smallclassorder from web_notice_smallclass order by id");
            smallclassid.Items.Add(new ListItem("全部", "0"));
            while (searchReader.Read())
            {
                smallclassid.Items.Add(new ListItem(searchReader["smallclassname"].ToString().Replace("&nbsp;"," "), searchReader["ID"].ToString()));
            }
            searchReader.Close();

   }

}
